package com.group9.pojo;

import java.math.BigDecimal;

public class OrderDetail {
    private Integer orderDetailId;

    private Integer orderId;

    private Integer fruitId;

    private String fruitName;

    private Integer fruitCnt;

    private BigDecimal fruitPrice;

    private Float weight;

    private BigDecimal feeMoney;

    private Byte orderDetailStatus;

    private String other1;

    private String other2;

    public Integer getOrderDetailId() {
        return orderDetailId;
    }

    public void setOrderDetailId(Integer orderDetailId) {
        this.orderDetailId = orderDetailId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getFruitId() {
        return fruitId;
    }

    public void setFruitId(Integer fruitId) {
        this.fruitId = fruitId;
    }

    public String getFruitName() {
        return fruitName;
    }

    public void setFruitName(String fruitName) {
        this.fruitName = fruitName == null ? null : fruitName.trim();
    }

    public Integer getFruitCnt() {
        return fruitCnt;
    }

    public void setFruitCnt(Integer fruitCnt) {
        this.fruitCnt = fruitCnt;
    }

    public BigDecimal getFruitPrice() {
        return fruitPrice;
    }

    public void setFruitPrice(BigDecimal fruitPrice) {
        this.fruitPrice = fruitPrice;
    }

    public Float getWeight() {
        return weight;
    }

    public void setWeight(Float weight) {
        this.weight = weight;
    }

    public BigDecimal getFeeMoney() {
        return feeMoney;
    }

    public void setFeeMoney(BigDecimal feeMoney) {
        this.feeMoney = feeMoney;
    }

    public Byte getOrderDetailStatus() {
        return orderDetailStatus;
    }

    public void setOrderDetailStatus(Byte orderDetailStatus) {
        this.orderDetailStatus = orderDetailStatus;
    }

    public String getOther1() {
        return other1;
    }

    public void setOther1(String other1) {
        this.other1 = other1 == null ? null : other1.trim();
    }

    public String getOther2() {
        return other2;
    }

    public void setOther2(String other2) {
        this.other2 = other2 == null ? null : other2.trim();
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
                "orderDetailId=" + orderDetailId +
                ", orderId=" + orderId +
                ", fruitId=" + fruitId +
                ", fruitName='" + fruitName + '\'' +
                ", fruitCnt=" + fruitCnt +
                ", fruitPrice=" + fruitPrice +
                ", weight=" + weight +
                ", feeMoney=" + feeMoney +
                ", orderDetailStatus=" + orderDetailStatus +
                ", other1='" + other1 + '\'' +
                ", other2='" + other2 + '\'' +
                '}';
    }
}